package com.weiyuwqj.api.service;

import com.weiyuwqj.api.common.Paginator;
//import com.weiyuwqj.api.hengfeng.model.base.HfResultBean;
//import com.weiyuwqj.api.hengfeng.model.recharge.HfQuickRechargeRequestByShop;
import com.weiyuwqj.api.model.BusAccountCash;
import com.weiyuwqj.api.base.BaseService;
import com.weiyuwqj.api.common.PageList;
import com.weiyuwqj.api.model.vo.BusAccountCashVo;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface BusAccountCashService extends BaseService<BusAccountCash> {

	void updateBusAccountCashStatus(String orderNo, int oldStatus, int newStatus, String addIp);
	
	BusAccountCash findBusAccountCashByOrderNo(String orderNo);
	
	List<BusAccountCash> findBusAccountCashByStatus(int status);

	List<BusAccountCash> findBusAccountCashByUserId(int userId);

	PageList getList(Paginator p, Map<String, Object> param);

	BusAccountCashVo getSingle(Map<String, Object> param);

	//获取用户当日提现总金额
	Integer getTodayWithdrawTotal(Integer userId);

	List<BusAccountCashVo> excelList(Map<String, Object> param);

	Integer getMonthlyWithdrawTotal(Map map);

	//后台首页提现金额统计
	Map countCashAmount();

	BigDecimal sumCashAmountByUserId(Integer userId);

	PageList getListByUserId(Paginator p, Integer userId);

	PageList getDailyList(Paginator p, Map<String, Object> map);

	List<Map> statCashAmount(Map map);

	//后台不分页列表
	List<BusAccountCashVo> getList(Map map);

	//提现
	BusAccountCash doCash(BigDecimal amount, Integer userId, String resource);

	//后台首页提现趋势图
	List<Map> getRegionGroupCountCashList(Map map);

	//void doHfWithdraw(BusAccountCash cash);

	//更新备注
	int updateRemarkByOrderNo(String orderNo, String remark);

//	/**
//	 * 平台提现
//	 * @param amount
//	 * @param orderNo
//	 * @return
//	 */
//    Map platformWithdraw(String amount, String orderNo);

	//HfResultBean quickRecharegeByShop(HfQuickRechargeRequestByShop quickRechargeRequestByShop);
}
